<!DOCTYPE html>
<html lang="en">
<head>
	<{include file="header.html"}>
	<title>会员管理-营销中心-<{$user_data['school_name']}>-德安信会计在线教育平台</title>
</head>
<body>
<div class="wrap">
	<!--star left-->
	<div class="column">
		<{include file="left_menu.html"}>
	</div>
	<div id="ContMianBox">
		<!--star子栏目-->
		<div class="sub-colum">
		    <div class="tit">会员管理</div>
		    <ul>
					<{foreach from=$left_menu_min.list item=item}>
					<li <{if $item['url'] == $left_menu_min.curr}>class="curr"<{/if}>><a href="<{$item['url']}>"><{$item['name']}></a></li>
					<{/foreach}>
		    </ul>
		</div>
		<!--end子栏目-->
		<!--end left-->
		<div class="container narrow">
		    <!--star conter-->
		    <div class="cetContent">
					<div class="tit p-lr20">
					    <span class="curr">消费记录</span>
					</div>
					<!--star内容区域-->
					<div class="mainScroll">
					    <div class="mainContainer line-all">
					        <!--star tabMainCont-->
					        <div class="tabMainCont">

					            <!--star营销渠道-->
								<div class="tabMainCont">
									<!--star会员管理-->
									<fieldset class="layui-elem-field">
										<legend>筛选</legend>
										<div class="layui-field-box">
											<form class="layui-form layui-form-pane1" method="post">
												<div class="layui-form-item">
													<div class="layui-inline">
														<select name="status" datatype="*">
		     												<option value="all">订单状态</option>
		     												<option value="0" <{if $data.status|default:'all' == '0'}>selected<{/if}>>未付款</option>
		     												<option value="1" <{if $data.status|default:'all' == '1'}>selected<{/if}>>已付款</option>
		     												<option value="2" <{if $data.status|default:'all' == '2'}>selected<{/if}>>已发货</option>
		    											</select>
													</div>
													<div class="layui-inline">
														<select name="order_type" datatype="*">
		     												<option value="0" >订单类型</option>
		     												<option value="1" <{if $data.order_type|default:'0' == '1'}>selected<{/if}>>视频课订单</option>
		     												<option value="2" <{if $data.order_type|default:'0' == '2'}>selected<{/if}>>直播课订单</option>
		     												<option value="3" <{if $data.order_type|default:'0' == '3'}>selected<{/if}>>面授课订单</option>
		     												<option value="4" <{if $data.order_type|default:'0' == '4'}>selected<{/if}>>题库订单</option>
		     												<option value="5" <{if $data.order_type|default:'0' == '5'}>selected<{/if}>>实训订单</option>
		    											</select>
													</div>

													<div class="layui-inline">
														<input type="text" name="order_num" placeholder="订单号" autocomplete="off" value='<{if $data['order_num'] != 0}><{$data['order_num']}><{/if}>' class="layui-input">
													</div>
												</div>
												<div class="layui-form-item">
													<div class="layui-inline">
														<input class="layui-input" name="st" value="<{if $data['st'] != 0}><{$data['st']}><{/if}>" placeholder="开始日" id="LAY_demorange_s">
													</div>
													<div class="layui-inline">
														<input class="layui-input" name="et" value="<{if $data['et'] != 0}><{$data['et']}><{/if}>"  placeholder="截止日" id="LAY_demorange_e">
													</div>

													<div class="layui-inline">
														<button type="submit" class="layui-btn">搜索</button>
													</div>
												</div>
											</form>
										</div>
									</fieldset>
									<!--商品列表 star-->
									<div class="goods_list p-t10">
										<div class="mtc_tab">
											<!--star mc-->
											<div class="mc">

												<table class="layui-table">
															<tbody>
																<tr>
																	<th>买家</th>
																	<th>订单号</th>
																	<th>订单类型</th>
																	<th>商品</th>
																	<th>金额</th>
																	<th>数量</th>
																	<th>付款时间</th>
																	<th>订单状态</th>
																</tr>
															</tbody>
															<tbody>
																<{foreach from=$order_list item=item}>
																	<{assign var="product" value=$item['order_products']|json_decode:true}>
																	<tr>
																		<td><{$item['nick']}></td>
																		<td><span class="c-ff6d5e"><{$item['order_num']}></span></td>
																		<td><{if $item['order_type'] == 1}>
																		视频课订单
																		<{else if $item['order_type'] == 2}>
																		直播课订单
																		<{else if $item['order_type'] == 3}>
																		面授课订单
																		<{else if $item['order_type'] == 4}>
																		题库订单
																		<{else if $item['order_type'] == 5}>
																		实训订单
																		<{/if}></td>
																		<td>
																			<{$product[0].title}>
																		</td>
																		<td><{$item[ 'total_order_amount']}></td>
																		<td><{$product[0].quantity}></td>

																		<td><{$item['payment_time']}></td>
																		<td>
																		<{if $item['order_status'] == 0}>
																		未付款
																		<{else if $item['order_status'] == 1}>
																		已付款
																		<{else if $item['order_status'] == 2}>
																		已发货
																		<{/if}>
																		</td>

																	<{/foreach}>
															</tbody>
														</table>
												<div class="pages p-tb20" style="text-align:right;">
													<{if isset($pagination)}><{$pagination}><{/if}>
												</div>
											</div>
											<!--end mc-->
										</div>

									</div>
									<!--商品列表 end -->
									<!--star会员管理-->
								</div>
					            <!--end营销渠道-->


					        </div>
					        <!--end tabMainCont-->
					        </div>

					    </div>
					</div>
					<!--end内容区域-->

		</div>


	</div>
</div>
<{include file="footer.html"}>
<script>
	layui.use('laydate', function(){
	  	var laydate = layui.laydate;

	  	var start = {
	    	min: '2016-11-31 23:59:59'
	    	,max: laydate.now(+1)
	    	,istoday: false
	    	,choose: function(datas){
	      	end.min = datas; //开始日选好后，重置结束日的最小日期
	      	end.start = datas //将结束日的初始值设定为开始日
	    }
  		};

	  var end = {
	    min: '2016-11-31 23:59:59'
	    ,max: laydate.now(+1)
	    ,istoday: false
	    ,choose: function(datas){
	      start.max = datas; //结束日选好后，重置开始日的最大日期
	    }
	  };

	  document.getElementById('LAY_demorange_s').onclick = function(){
	    start.elem = this;
	    laydate(start);
	  }
	  document.getElementById('LAY_demorange_e').onclick = function(){
	    end.elem = this
	    laydate(end);
	  }

	});
</script>
</body>
</html>
